﻿using SCM.Common;
using SCM.Model;
using SCM.Model.DBEntity;
using System.Collections.Generic;

namespace SCM.Servie.IBusiness
{
    /// <summary>
    /// 角色服务接口
    /// </summary>
    public interface IRoleService
    {
        string Add(T_Role model);

        bool Delete(List<string> ids);

        bool Update(T_Role model);

        T_Role GetByRoleName(string roleName);

        T_Role GetById(string id);

        List<T_Role> GetList(string companyId);

        List<T_Role> GetList(List<string> ids);

        PageData<T_Role> Query(string roleName, string companyId, PageInfo page);
    }
}
